﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace bdnt_pets_system_Entity
{
    [DataContract]
    public class Tbl_MatePart : INotifyPropertyChanged
    {
        Int32 id;
        [DataMember]
        public Int32 Id
        {
            get { return id; }
            set { id = value; }
        }

        string vINNO;
        [DataMember]
        public string VINNO
        {
            get { return vINNO; }
            set
            {                
                vINNO = value;
                this.OnPropertyChanged("VINNO");
            }
        }

        string pARTNO;
        [DataMember]
        public string PARTNO
        {
            get { return pARTNO; }
            set
            {
                pARTNO = value;
                this.OnPropertyChanged("PARTNO");
            }
        }

        string partName;
        [DataMember]
        public string PartName
        {
            get { return partName; }
            set
            {
                partName = value;
            }
        }
        string en_partName;
        [DataMember]
        public string en_PartName
        {
            get { return en_partName; }
            set
            {
                en_partName = value;
            }
        }

        string bARNO;
        [DataMember]
        public string BARNO
        {
            get { return bARNO; }
            set
            {
                bARNO = value;
                this.OnPropertyChanged("BARNO");
            }
        }

        DateTime? cREATETIME;
        [DataMember]
        public DateTime? CREATETIME
        {
            get { return cREATETIME; }
            set
            {
                cREATETIME = value;
            }
        }

        Int32 cREATEUSERID;
        [DataMember]
        public Int32 CREATEUSERID
        {
            get { return cREATEUSERID; }
            set
            {
                cREATEUSERID = value;
            }
        }

        string createUserName;
        [DataMember]
        public string CreateUserName
        {
            get { return createUserName; }
            set
            {
                createUserName = value;
            }
        }

        bool isSMed = false;
        [DataMember]
        public bool IsSMed
        {
            get { return isSMed; }
            set
            {
                isSMed = value;
                this.OnPropertyChanged("IsSMed");
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void OnPropertyChanged(string PropName)
        {
            if (PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(PropName));
            }
        }
    }
}
